package com.sz.youban.dt.entity.allinpay;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * <p>
 * 支付结果回调记录
 * </p>
 *
 * @author ruichar
 * @since 2017-06-15
 */
@TableName("dt_pay_notify_records")
public class DtPayNotifyRecords extends Model<DtPayNotifyRecords> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 0:未通知,1:已通知
     */
	private Integer status;
    /**
     * 交易流水号
     */
	@TableField("deal_no")
	private String dealNo;
    /**
     * 打款订单编号
     */
	@TableField("order_no")
	private String orderNo;
    /**
     * 回掉地址
     */
	@TableField("return_url")
	private String returnUrl;
    /**
     * 交易金额(元)
     */
	private BigDecimal amount;
    /**
     * 提交时间
     */
	@TableField("sub_time")
	private Date subTime;
    /**
     * 时间戳
     */
	private Date tsp;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public String getDealNo() {
		return dealNo;
	}

	public void setDealNo(String dealNo) {
		this.dealNo = dealNo;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getReturnUrl() {
		return returnUrl;
	}

	public void setReturnUrl(String returnUrl) {
		this.returnUrl = returnUrl;
	}

	public BigDecimal getAmount() {
		return amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Date getSubTime() {
		return subTime;
	}

	public void setSubTime(Date subTime) {
		this.subTime = subTime;
	}

	public Date getTsp() {
		return tsp;
	}

	public void setTsp(Date tsp) {
		this.tsp = tsp;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
